<?php

	class ItemController extends  BaseController{

		//protected  $_className ="Model";

		public function query($model,$filter =null, $state = null){
			$this->_className = $model;
			return parent::getEntityList($filter,$state);
		}

		



		 public function getEntityByid($model,$id){
		 	$this->_className = $model;
	        return parent::getEntityByid($id);
	     }

		public function save($model,$post_json = null){
			$this->_className = $model;
			parent::save($post_json);
					
	    }

	    public function switchState($model,$id,$state){
	    	$this->_className = $model;
	        parent::switchState($id,$state);
    	}



	}

?>